<?php
// +----------------------------------------------------------------------
// | ThinkBLOG (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | @link ( http://www.yurnero.net )
// +----------------------------------------------------------------------
// | @licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | @author nicholas <nicholasinlove@126.com>
// +----------------------------------------------------------------------
// | $Id: menu.php 105 2012-04-06 07:47:44Z nicholasinlove1986@gmail.com $
// +----------------------------------------------------------------------


if (! defined ( 'THINK_PATH' ))
	exit ();

$modules = S ( 'menus' );

if (empty ( $modules )) {
		
	/* 控制板 */
	$modules ['01_index'] ['01_Index_index'] = U ( 'Admin/Index/index' );
	$modules ['01_index'] ['02_Index_info'] = U ( 'Admin/Index/info' );
	
	/* 文章 */
	$modules ['02_posts'] ['01_Posts_index'] = U ( 'Admin/Posts/index' );
	$modules ['02_posts'] ['02_Posts_add'] = U ( 'Admin/Posts/add' );
	$modules ['02_posts'] ['03_Metas_category'] = U ( 'Admin/Metas/category' );
	$modules ['02_posts'] ['04_Metas_tag'] = U ( 'Admin/Metas/tag' );
	
	/* 媒体 */
	$modules ['03_uploads'] ['01_Uploads_index'] = U ( 'Admin/Uploads/index' );
	$modules ['03_uploads'] ['02_Uploads_add'] = U ( 'Admin/Uploads/add' );
	
	/* 链接 */
	$modules ['04_links'] ['01_Links_index'] = U ( 'Admin/Links/index' );
	$modules ['04_links'] ['02_Links_add'] = U ( 'Admin/Links/add' );
	
	/* 页面 */
	$modules ['05_pages'] ['01_Pages_index'] = U ( 'Admin/Pages/index' );
	$modules ['05_pages'] ['02_Pages_add'] = U ( 'Admin/Pages/add' );
	
	/* 评论 */
	$modules ['06_comments'] ['01_Comments_index'] = U ( 'Admin/Comments/index' );
	
	/* 外观 */
	$modules ['07_themes'] ['01_Themes_index'] = U ( 'Admin/Themes/index' );
	$modules ['07_themes'] ['02_Themes_widgets'] = U ( 'Admin/Themes/widgets' );
	$modules ['07_themes'] ['03_Themes_options'] = U ( 'Admin/Themes/options' );
	$modules ['07_themes'] ['04_Themes_editor'] = U ( 'Admin/Themes/editor' );
	
	/* 插件 */
	$modules ['08_plugins'] ['01_Plugins_index'] = U ( 'Admin/Plugins/index' );
	$modules ['08_plugins'] ['02_Plugins_add'] = U ( 'Admin/Plugins/add' );
	$modules ['08_plugins'] ['03_Plugins_editor'] = U ( 'Admin/Plugins/editor' );
	
	/* 用户 */
	$modules ['09_users'] ['01_Users_index'] = U ( 'Admin/Users/index' );
	$modules ['09_users'] ['02_Users_add'] = U ( 'Admin/Users/add' );
	$modules ['09_users'] ['03_Users_online'] = U ( 'Admin/Users/online' );
	$modules ['09_users'] ['04_Roles_index'] = U ( 'Admin/Roles/index' );
	$modules ['09_users'] ['05_Users_profile'] = U ( 'Admin/Users/profile' );
	
	/* 工具 */
	$modules ['10_tools'] ['01_Tools_backup'] = U ( 'Admin/Tools/index' );
	$modules ['10_tools'] ['02_Tools_restore'] = U ( 'Admin/Tools/index' );
	$modules ['10_tools'] ['03_Tools_optimize'] = U ( 'Admin/Tools/index' );
	$modules ['10_tools'] ['04_Tools_vote'] = U ( 'Admin/Vote/index' );
	
	/* 设置 */
	$modules ['11_options'] ['01_Options_general'] = U ( 'Admin/Options/general' );
	$modules ['11_options'] ['02_Options_writing'] = U ( 'Admin/Options/writing' );
	$modules ['11_options'] ['03_Options_reading'] = U ( 'Admin/Options/reading' );
	$modules ['11_options'] ['04_Options_discussion'] = U ( 'Admin/Options/discussion' );
	$modules ['11_options'] ['05_Options_media'] = U ( 'Admin/Options/media' );
	$modules ['11_options'] ['06_Options_privacy'] = U ( 'Admin/Options/privacy' );
	$modules ['11_options'] ['07_Options_core'] = U ( 'Admin/Options/core' );
	$modules ['11_options'] ['08_Options_email'] = U ( 'Admin/Options/email' );
	
	S ( 'menus', $modules );
}
//----------------------------------------------------------------------
/* lang */
$lang ['01_index'] = '控制板';
$lang ['02_posts'] = '文章';
$lang ['03_uploads'] = '媒体';
$lang ['04_links'] = '链接';
$lang ['05_pages'] = '页面';
$lang ['06_comments'] = "评论 <span class='awaiting-mod count-$newcomments'><span class='pending-count'>$newcomments</span></span>";
$lang ['07_themes'] = '外观';
$lang ['08_plugins'] = '插件';
$lang ['09_users'] = '用户';
$lang ['10_tools'] = '工具';
$lang ['11_options'] = '设置';
/* 控制板 */
$lang ['01_Index_index'] = '首页';
$lang ['02_Index_info'] = "系统信息";
/* 文章 */
$lang ['01_Posts_index'] = '所有文章';
$lang ['02_Posts_add'] = '写文章';
$lang ['03_Metas_category'] = '分类目录';
$lang ['04_Metas_tag'] = '文章标签';
/* 媒体 */
$lang ['01_Uploads_index'] = '媒体库';
$lang ['02_Uploads_add'] = '添加';
/* 链接 */
$lang ['01_Links_index'] = '所有链接';
$lang ['02_Links_add'] = '添加';
/* 页面 */
$lang ['01_Pages_index'] = '所有页面';
$lang ['02_Pages_add'] = '新建页面';
/* 评论 */
$lang ['01_Comments_index'] = '所有评论';
/* 外观 */
$lang ['01_Themes_index'] = '主题';
$lang ['02_Themes_widgets'] = '小工具';
$lang ['03_Themes_options'] = '主题选项';
$lang ['04_Themes_editor'] = '编辑';
/* 插件 */
$lang ['01_Plugins_index'] = '已安装的插件';
$lang ['02_Plugins_add'] = '安装插件';
$lang ['03_Plugins_editor'] = '编辑';
/* 用户 */
$lang ['01_Users_index'] = '所有用户';
$lang ['02_Users_add'] = '添加用户';
$lang ['03_Users_online'] = '在线用户';
$lang ['04_Roles_index'] = '所有角色';
$lang ['05_Users_profile'] = '我的个人资料';
/* 工具 */
$lang ['01_Tools_backup'] = '数据备份';
$lang ['02_Tools_restore'] = '数据恢复';
$lang ['03_Tools_optimize'] = '数据优化';
$lang ['04_Tools_vote'] = '投票管理';
/* 设置 */
$lang ['01_Options_general'] = '常规';
$lang ['02_Options_writing'] = '撰写';
$lang ['03_Options_reading'] = '阅读';
$lang ['04_Options_discussion'] = '讨论';
$lang ['05_Options_media'] = '媒体';
$lang ['06_Options_privacy'] = '隐私';
$lang ['07_Options_core'] = '内核';
$lang ['08_Options_email'] = '邮件';
//----------------------------------------------------------------------
/* css */
$css ['01_index'] = 'wp-first-item wp-has-submenu menu-top menu-top-first menu-icon-dashboard menu-top-last ';
$css ['02_posts'] = 'wp-has-submenu open-if-no-js menu-top menu-icon-post menu-top-first ';
$css ['03_uploads'] = 'wp-has-submenu menu-top menu-icon-media ';
$css ['04_links'] = 'wp-has-submenu menu-top menu-icon-links ';
$css ['05_pages'] = 'wp-has-submenu menu-top menu-icon-page ';
$css ['06_comments'] = 'wp-has-submenu menu-top menu-icon-comments menu-top-last ';
$css ['07_themes'] = 'wp-has-submenu menu-top menu-icon-appearance menu-top-first ';
$css ['08_plugins'] = 'wp-has-submenu menu-top menu-icon-plugins ';
$css ['09_users'] = 'wp-has-submenu menu-top menu-icon-users ';
$css ['10_tools'] = 'wp-has-submenu menu-top menu-icon-tools ';
$css ['11_options'] = 'wp-has-submenu menu-top menu-icon-settings menu-top-last ';
//----------------------------------------------------------------------
/* id */
$id ['01_index'] = 'menu-dashboard';
$id ['02_posts'] = 'menu-posts';
$id ['03_uploads'] = 'menu-media';
$id ['04_links'] = 'menu-links';
$id ['05_pages'] = 'menu-pages';
$id ['06_comments'] = 'menu-comments';
$id ['07_themes'] = 'menu-appearance';
$id ['08_plugins'] = 'menu-plugins';
$id ['09_users'] = 'menu-users';
$id ['10_tools'] = 'menu-tools';
$id ['11_options'] = 'menu-settings';
//----------------------------------------------------------------------
/* purview */
//$purview ['']      = array('', '', '');
/* 控制板 */
$purview ['01_Index_index'] = 'Index_index';
$purview ['02_Index_info'] = 'Index_info';
/* 文章 */
$purview ['01_Posts_index'] = 'Posts_index';
$purview ['02_Posts_add'] = 'Posts_add';
$purview ['03_Metas_category'] = 'Metas_category';
$purview ['04_Metas_tag'] = 'Metas_tag';
/* 媒体 */
$purview ['01_Uploads_index'] = 'Uploads_index';
$purview ['02_Uploads_add'] = 'Uploads_add';
/* 链接 */
$purview ['01_Links_index'] = 'Links_index';
$purview ['02_Links_add'] = 'Links_add';
/* 页面 */
$purview ['01_Pages_index'] = 'Pages_index';
$purview ['02_Pages_add'] = 'Pages_add';
/* 评论 */
$purview ['01_Comments_index'] = 'Comments_index';
/* 外观 */
$purview ['01_Themes_index'] = 'Themes_index';
$purview ['02_Themes_widgets'] = 'Themes_widgets';
$purview ['03_Themes_options'] = 'Themes_options';
$purview ['04_Themes_editor'] = 'Themes_editor';
/* 插件 */
$purview ['01_Plugins_index'] = 'Plugins_index';
$purview ['02_Plugins_add'] = 'Plugins_add';
$purview ['03_Plugins_editor'] = 'Plugins_editor';
/* 用户 */
$purview ['01_Users_index'] = 'Users_index';
$purview ['02_Users_add'] = 'Users_add';
$purview ['03_Users_online'] = 'Users_online';
$purview ['04_Roles_index'] = 'Roles_index';
$purview ['05_Users_profile'] = 'Users_profile';
/* 工具 */
$purview ['01_Tools_backup'] = 'Tools_backup';
$purview ['02_Tools_restore'] = 'Tools_restore';
$purview ['03_Tools_optimize'] = 'Tools_optimize';
$purview ['04_Tools_vote'] = 'Tools_vote';
/* 设置 */
$purview ['01_Options_general'] = 'Options_general';
$purview ['02_Options_writing'] = 'Options_writing';
$purview ['03_Options_reading'] = 'Options_reading';
$purview ['04_Options_discussion'] = 'Options_discussion';
$purview ['05_Options_media'] = 'Options_media';
$purview ['06_Options_privacy'] = 'Options_privacy';
$purview ['07_Options_core'] = 'ptions_core';
$purview ['08_Options_email'] = 'Options_email';
//----------------------------------------------------------------------
/* separator */
$separator ['01_index'] = '<li class="wp-menu-separator"><div class="separator"></div></li>';
$separator ['06_comments'] = '<li class="wp-menu-separator"><div class="separator"></div></li>';